/*
 * @Author: Jimmy
 * @LastModifiedBy: Jimmy
 * @Date: 2024-05-26 15:33:47
 * @LastEditTime: 2024-05-26 15:35:03
 * @FilePath: /nest_study/src/common/decorators/allow-anon.decorator.ts
 */
import { SetMetadata } from "@nestjs/common";

export const ALLOW_ANON = 'allowAnon';
/**
 * 允许接口不校验 token
 */
export const AllowAnon = () => SetMetadata(ALLOW_ANON, true);